//
//  Fav_shopResult.swift
//  ShopIOS
//
//  Created by Apple on 2019/8/13.
//  Copyright © 2019 Apple. All rights reserved.
//

import Foundation
import SwiftyJSON
struct Fav_shopResult {
    var Success: Bool = false
    var Data = [Fav_shopData]()
    
    init(json: JSON) {
        Success = json["Success"].boolValue
        Data = json["Data"].arrayValue.compactMap({ Fav_shopData(json: $0)})
    }
}

struct Fav_shopData {
    var Id: Int = 0
    var ShopId: Int = 0
    var Name: String?
    var Logo: String?
    
    init(json: JSON) {
        Id = json["Id"].intValue
        ShopId = json["ShopId"].intValue
        Name = json["Name"].stringValue
        Logo = json["Logo"].stringValue
    }
}
